package db;

import java.util.ArrayList;

public class Place{

	private String name;
	private ArrayList<String> altName = new ArrayList<String>();
	private boolean port;
	private double latitude;
	private double longitude;
	private int inhabitants;
	private String fullName;
	private Country country = null;
	
	/**
	 * Constructor for a place.
	 * @param name
	 * @param isCapital
	 */
	public Place(String name) {
		this.name = name;
	}

	public Place(String name, double latitude, double longitude,
			int inhabitants, Country c) {
		this.name = name;
		this.latitude = latitude;
		this.longitude = longitude;
		this.inhabitants = inhabitants;
		this.country = c;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @return the altName
	 */
	public ArrayList<String> getAltName() {
		return altName;
	}

	/**
	 * @param port the port to set
	 */
	public void setPort(boolean port) {
		this.port = port;
	}

	/**
	 * @return the port
	 */
	public boolean isPort() {
		return port;
	}

	/**
	 * @param latitude the latitude to set
	 */
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	/**
	 * @return the latitude
	 */
	public double getLatitude() {
		return latitude;
	}

	/**
	 * @param longitude the longitude to set
	 */
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	/**
	 * @return the longitude
	 */
	public double getLongitude() {
		return longitude;
	}

	/**
	 * @param inhabitants the inhabitants to set
	 */
	public void setInhabitants(int inhabitants) {
		this.inhabitants = inhabitants;
	}

	/**
	 * @return the inhabitants
	 */
	public int getInhabitants() {
		return inhabitants;
	}

	/**
	 * @param fullName the fullName to set
	 */
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	/**
	 * @return the fullName
	 */
	public String getFullName() {
		return fullName;
	}

	/**
	 * @param country the country to set
	 */
	public void setCountry(Country country) {
		this.country = country;
	}

	/**
	 * @return the country
	 */
	public Country getCountry() {
		return country;
	}

	public void addAltName(String name) {
		altName.add(name);
	}

	
}